package com.ysd.lis.controller.inv;

import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.inv.InvManufacturerCertDto;
import com.ysd.lis.request.inv.InvManufacturerCertParam;
import com.ysd.lis.service.inv.InvManufacturerCertService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-09-11
 */
@Api(tags = "生产商证书")
@RestController
@RequestMapping("/lis/inv/manufacturerCert")
public class InvManufacturerCertController extends BaseController {

    @Autowired
    InvManufacturerCertService invManufacturerCertService;
    @ApiOperation("查询")
    @GetMapping("/findInvManufacturerCertList")
    public Result findInvManufacturerCertList(InvManufacturerCertParam param){
        return invManufacturerCertService.findInvManufacturerCertList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateInvManufacturerCert")
    public Result saveOrUpdateInvManufacturerCert(@RequestBody InvManufacturerCertDto dto) {
        return invManufacturerCertService.saveOrUpdateInvManufacturerCert(dto);
    }
    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteInvManufacturerCertList")
    public Result batchDeleteInvManufacturerCertList(@RequestBody InvManufacturerCertDto dto){
        return  invManufacturerCertService.batchDeleteInvManufacturerCertList(dto);
    }


}
